<?php /* Smarty version 2.6.19, created on 2008-07-03 17:58:09
         compiled from profile/edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'profile/edit.tpl', 1, false),array('function', 'html_select_date', 'profile/edit.tpl', 22, false),array('modifier', 'escape', 'profile/edit.tpl', 12, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "index.conf"), $this);?>
<?php echo '<?xml'; ?>
 version="1.0" encoding="utf-8"<?php echo '?>'; ?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <card title="Edit">
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

		<b><?php echo $this->_tpl_vars['error']['empty']; ?>
</b><br />
	    Username:<br />
	    <input type="text" name="user_login" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_login'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" readonly="readonly" /><br />
	    E-mail:<b><?php echo $this->_tpl_vars['error']['mail']; ?>
</b><br />
	    <input type="text" name="user_mail" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_mail'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    Gender:<br />
	    <select name="user_sex">
	        <option value="">Your gender</option>
	        <option value="male" <?php if ($this->_tpl_vars['data']['user_sex'] == 'male'): ?>selected="selected"<?php endif; ?>>Male</option>
	        <option value="female" <?php if ($this->_tpl_vars['data']['user_sex'] == 'female'): ?>selected="selected"<?php endif; ?>>Female</option>
	    </select><br />
	    Age:<b><?php echo $this->_tpl_vars['error']['born']; ?>
</b><br />
	    <?php echo smarty_function_html_select_date(array('selected_month' => ($this->_tpl_vars['month']),'selected_year' => ($this->_tpl_vars['year']),'selected_day' => ($this->_tpl_vars['day']),'start_year' => "-60",'end_year' => "-8"), $this);?>
<br />
	    Phone number:<br />
	    <input type="text" name="user_number" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_number'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" readonly="readonly" /><br />
	    Country/region:<br />
	    <input type="text" name="user_country" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_country'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    City/other country:<br />
	    <input type="text" name="user_city" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_city'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    About yourself:<br />
	    <input type="text" name="user_description" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
		<anchor>Change
            <go href="/<?php echo $this->_tpl_vars['sys_path']; ?>
/" method="post">
                <postfield name="data[user_login]" value="$(user_login)"/>
                <postfield name="data[user_mail]" value="$(user_mail)"/>
                <postfield name="data[user_sex]" value="$(user_sex)"/>
                <postfield name="data[user_number]" value="$(user_number)"/>
                <postfield name="data[user_country]" value="$(user_country)"/>
                <postfield name="data[user_city]" value="$(user_city)"/>
                <postfield name="data[user_description]" value="$(user_description)"/>
            </go>
        </anchor><br />
		
		<b><?php echo $this->_tpl_vars['error']['password_empty']; ?>
</b><br />
		<b><?php echo $this->_tpl_vars['result']; ?>
</b><br />
	    Old password:<b><?php echo $this->_tpl_vars['error']['old_password']; ?>
</b><br />
	    <input type="password" name="old_password" /><br />
	    Password:<b><?php echo $this->_tpl_vars['error']['password']; ?>
</b><br />
	    <input type="password" name="password" /><br />
	    Password again:<br />
	    <input type="password" name="password_again" /><br />
		<anchor>Change
            <go href="/<?php echo $this->_tpl_vars['sys_path']; ?>
/" method="post">
                <postfield name="data[old_password]" value="$(old_password)"/>
                <postfield name="data[password]" value="$(password)"/>
                <postfield name="data[password_again]" value="$(password_again)"/>
                <postfield name="password" value="1"/>
            </go>
        </anchor><br />
		
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "profile/inc/return.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    </card>
</wml> 